package com.example.finalwork06.Service.Impl;

import com.example.finalwork06.Entity.CrawlerLog;
import com.example.finalwork06.Mapper.ChinaIndexMapper;
import com.example.finalwork06.Mapper.CrawlerLogMapper;
import com.example.finalwork06.Service.CrawlerLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CrawlerLogServiceImpl implements CrawlerLogService {
    @Autowired
    private CrawlerLogMapper crawlerLogMapper;
    @Autowired
    private ChinaIndexMapper chinaIndexMapper;
    @Override
    public void crawAndSaveData(CrawlerLog crawlerLog) {

        crawlerLogMapper.insertLog(crawlerLog);
    }
}
